'use strict';

import request from '@/utils/request'
const app = require('../../app');

module.exports = function(url, data) {
  const req = request(url, {
    dataType: 'json',
    type: 'POST',
    data: JSON.stringify(data),
  })
  return req;
};
